package com.zzwcode.springweb.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class IndexWebController {

    private static final Logger logger = LoggerFactory.getLogger(IndexWebController.class);

    private static final String PREFIX = "";

    @GetMapping("/")
    public String index(ModelMap modelMap){
        return PREFIX + "index";
    }

    @GetMapping("/test")
    public String test(ModelMap modelMap){
        return PREFIX + "test";
    }
}
